#####################################################
# Makefile: Makefile for Assignment1 EECS22L Spring 2012
#
# 1/16/12 Ivan Bannykh                 
#
#####################################################

# design names
D=out
CC = gcc
OPT = -ansi -Wall -g
#DEBUG = -DDEBUG

all:FileReader 
Hex:HexConverter
Test:

#target to generate FileReader
FileReader: FileReader.c FileReader.h
	$(CC)  FileReader.c -o FileReader $(OPT)
#target to generate HexConverter
Hex: HexConverter.c
	$(CC)  HexConverter.c -o Hex $(OPT)



memcheck: Test
	valgrind --leak-check=full ./Test
	
#target to clean the directory
clean:
	rm -f *.o *.jpg *.yuv $(D) 